package com.jpl.seminar.ui.module.registration;

import com.jpl.seminar.ui.module.menu.MenuView;
import com.vaadin.addon.touchkit.ui.NavigationManager;
import com.vaadin.addon.touchkit.ui.NavigationView;
import com.vaadin.ui.VerticalLayout;

public class RegistrationView extends NavigationView {

	private static final long serialVersionUID = 1L;

	private final MobileRegistrationForm registrationForm;

	public RegistrationView(final NavigationManager nav) {

		setWidth("100%");
//		setHeight("100%");
		setCaption("Registration");
		this.registrationForm = new MobileRegistrationForm();

		VerticalLayout verticalLayout = new VerticalLayout();
		verticalLayout.setWidth("100%");

		this.registrationForm.setWidth("100%");
		this.registrationForm.init();
		verticalLayout.addComponent(this.registrationForm);

		setContent(verticalLayout);
		setToolbar(MenuView.createToolbar());
	}

}
